﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tomahawk.Runtime.Logic;
using Microsoft.Xna.Framework;

namespace Tutorial01
{
    public class Board : XActor
    {

        protected override void OnInitialize()
        {
            base.OnInitialize();

            //Create a plane renderer component
            XMaterialPlaneComponent plane = (XMaterialPlaneComponent)XWorld.Instance.CreateObject(
                                              false, typeof(XMaterialPlaneComponent), this);
            plane.Material = @"Tomahawk.Content\Materials\Generics@Checkerboard_Material";
            plane.Initialize();
            plane.SceneNode.Scale = new Vector3(50.0f, 50.0f, 50.0f);

            //Add the component to the ball actor
            this.AddComponent(plane);
        }

    }
}
